import request from '@/common/request.js'

// 查询物资领用列表(APP)
export function getRequisitionList(data) {
	return request({
		url: '/business/material/requisition/listForApp',
		method: 'post',
		data
	})
}


// 新增船舶维修项目
export function addWorkOrderList(query) {
  return request({
    url: '/business/fix/workOrder/add',
    method: 'post',
    data: query
  })
}

// 新增物资领用
export function addRequisition(query) {
  return request({
    url: '/business/material/requisition/add',
    method: 'post',
    data: query
  })
}

// 查询物资领用详情
export function getRequisitionDetail(query) {
  return request({
    url: '/business/material/requisition/detail',
    method: 'post',
    data: query
  })
}

// 审批物资领用
export function approveRequisition(query) {
  return request({
    url: '/business/material/requisition/approve',
    method: 'post',
    data: query
  })
}